package cn.net.test;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import cn.net.isir.utils.StringUtils;
import org.apache.log4j.Logger;

import java.util.*;

/**
 * @author liuxubo
 * @filename A.java
 * @package cn.net.test
 * @email lxb@isir.net.cn
 * @date 2018/11/14
 * @comment
 * @since 1.8
 */
public class A {
    //声明日志对象
    private static Logger logger = Logger.getLogger(A.class);

    private static List<Map> list = new ArrayList<>();

    public static void main(String[] args) {
        logger.info(B.name);
        String abc = "12345.00";
        logger.info(abc.substring(0, abc.length() - 3));
//        for (int i = 0; i < 9999; i++) {
//
//            logger.info(new Random().nextInt(512));
//        }

        String b = "asdfsafas";
        String a = JSON.toJSONString(b);
        logger.info(JSONObject.parseObject(a, b.getClass()));

        add("航旅交通","公共交通","出租车服务（TAXI）","A_A01_4121","");
        add("航旅交通","公共交通","出租船只","A_A01_4457","");
        add("航旅交通","公共交通","船舶、海运服务提供商","A_A01_4468","");
        add("航旅交通","公共交通","公共交通","A_A01_4111","");
        add("航旅交通","公共交通","急救服务","A_A01_4119","");
        add("航旅交通","公共交通","铁路货运","A_A01_4011","");
        add("航旅交通","公共交通","铁路客运","A_A01_4112","");
        add("航旅交通","公共交通","游轮及巡游航线服务","A_A01_4411","");
        add("航旅交通","公共交通","长途公路客运","A_A01_4131","");
        add("航旅交通","航空票务","航空公司","A_A03_4511","");
        add("航旅交通","航空票务","航空系统商","A_A03_4514","");
        add("航旅交通","航空票务","机场服务","A_A03_4582","");
        add("航旅交通","航空票务","机票代理人","A_A03_4512","《中国民用航空运输销售代理业务资格认可证书》，或经营范围包含“代售机票业务”");
        add("航旅交通","航空票务","机票平台","A_A03_4513","《中国民用航空运输销售代理业务资格认可证书》，或经营范围包含“代售机票业务”");
        add("航旅交通","旅行住宿","大型旅游景点","A_A04_4733","");
        add("航旅交通","旅行住宿","度假用别墅服务","A_A04_7012","");
        add("航旅交通","旅行住宿","国际货运代理和报关行","A_A04_4723","");
        add("航旅交通","旅行住宿","活动房车场及野营场所","A_A04_7033","");
        add("航旅交通","旅行住宿","路桥通行费","A_A04_4784","");
        add("航旅交通","旅行住宿","旅行社和旅游服务","A_A04_4722","");
        add("航旅交通","旅行住宿","未列入其他代码的运输服务","A_A04_4789","");
        add("航旅交通","旅行住宿","运动和娱乐露营","A_A04_7032","");
        add("航旅交通","旅行住宿","住宿服务（旅馆、酒店、汽车旅馆、度假村等）","A_A04_7011","");
        add("航旅交通","物流仓储","公共仓储、集装整理","A_A02_4225","");
        add("航旅交通","物流仓储","快递服务","A_A02_4215","《快递业务经营许可证》");
        add("航旅交通","物流仓储","物流货运服务","A_A02_4214","陆运：《道路运输经营许可证》；空运：《IATA航空货代资质》；海运：《有船无船承运业务经营资格登记证》");
        add("商业及生活服务","承包商（农业、建筑、出版）","电器承包商","S_S01_1731","");
        add("商业及生活服务","承包商（农业、建筑、出版）","混凝土承包商","S_S01_1771","");
        add("商业及生活服务","承包商（农业、建筑、出版）","建筑材料承包商","S_S01_1740","");
        add("商业及生活服务","承包商（农业、建筑、出版）","金属产品承包商","S_S01_1761","");
        add("商业及生活服务","承包商（农业、建筑、出版）","景观美化与园艺服务","S_S01_0780","");
        add("商业及生活服务","承包商（农业、建筑、出版）","空调类承包商","S_S01_1711","");
        add("商业及生活服务","承包商（农业、建筑、出版）","木工承包商","S_S01_1750","");
        add("商业及生活服务","承包商（农业、建筑、出版）","农业合作与农具","S_S01_0763","");
        add("商业及生活服务","承包商（农业、建筑、出版）","葡萄酒生产商","S_S01_0743","《酒类经营许可证》或《酒类销售许可证》");
        add("商业及生活服务","承包商（农业、建筑、出版）","其他工程承包商","S_S01_1799","");
        add("商业及生活服务","承包商（农业、建筑、出版）","其他酒类生产商","S_S01_0744","《酒类经营许可证》或《酒类销售许可证》");
        add("商业及生活服务","承包商（农业、建筑、出版）","兽医服务","S_S01_0742","");
        add("商业及生活服务","房地产","不动产代理——房地产经纪","S_S02_7013","");
        add("商业及生活服务","房地产","不动产管理－物业管理","S_S02_6513","");
        add("商业及生活服务","房地产","房地产开发商","S_S02_1520","");
        add("商业及生活服务","公共事业","公共事业（电、气、水）","S_S06_4900","如非实际水、电、煤等机构来签约，则需要提供水电煤服务提供商授权资质");
        add("商业及生活服务","公共事业","公共事业-电力缴费","S_S06_4901","如非实际电力机构来签约，则需要提供电力服务提供商授权资质");
        add("商业及生活服务","公共事业","公共事业-煤气缴费","S_S06_4902","如非实际煤气机构来签约，则需要提供煤气服务提供商授权资质");
        add("商业及生活服务","公共事业","公共事业-清洁服务缴费","S_S06_4904","");
        add("商业及生活服务","公共事业","公共事业-自来水缴费","S_S06_4903","如非实际自来水机构来签约，则需要提供自来水服务提供商授权资质");
        add("商业及生活服务","金融服务","保险代理","S_S04_6301","");
        add("商业及生活服务","金融服务","保险公司","S_S04_6300","");
        add("商业及生活服务","金融服务","典当行","S_S04_5933","营业执照经营范围明确包含相关内容，或提供《典当经营许可证》");
        add("商业及生活服务","金融服务","电汇和汇票服务","S_S04_4829","");
        add("商业及生活服务","金融服务","个人资金借贷","S_S04_6760","");
        add("商业及生活服务","金融服务","贵金属投资","S_S04_6050","");
        add("商业及生活服务","金融服务","金融机构-其他服务","S_S04_6012","");
        add("商业及生活服务","金融服务","金融机构-商业银行服务","S_S04_6010","");
        add("商业及生活服务","金融服务","金融机构-自动现金服务","S_S04_6011","");
        add("商业及生活服务","金融服务","外币汇兑","S_S04_6051","");
        add("商业及生活服务","金融服务","证券期货基金","S_S04_6211","");
        add("商业及生活服务","汽车租赁和服务","房车和娱乐车辆出租","S_S10_7519","");
        add("商业及生活服务","汽车租赁和服务","卡车及拖车出租","S_S10_7513","");
        add("商业及生活服务","汽车租赁和服务","轮胎翻新、维修","S_S10_7534","");
        add("商业及生活服务","汽车租赁和服务","汽车出租","S_S10_7512","");
        add("商业及生活服务","汽车租赁和服务","汽车改造等服务（非经销商）","S_S10_7538","");
        add("商业及生活服务","汽车租赁和服务","汽车喷漆店","S_S10_7535","");
        add("商业及生活服务","汽车租赁和服务","汽车维修、保养、美容装饰","S_S10_7531","");
        add("商业及生活服务","汽车租赁和服务","停车服务","S_S10_7523","");
        add("商业及生活服务","汽车租赁和服务","拖车服务","S_S10_7549","");
        add("商业及生活服务","汽车租赁和服务","洗车","S_S10_7542","");
        add("商业及生活服务","商业服务","保安和监控服务","S_S05_7393","");
        add("商业及生活服务","商业服务","出版印刷服务","S_S05_2741","");
        add("商业及生活服务","商业服务","复印及绘图服务","S_S05_7338","");
        add("商业及生活服务","商业服务","公关和企业管理服务","S_S05_7392","");
        add("商业及生活服务","商业服务","广告服务","S_S05_7311","");
        add("商业及生活服务","商业服务","海上船只遇难救助","S_S05_5935","");
        add("商业及生活服务","商业服务","刻版排版服务","S_S05_2791","");
        add("商业及生活服务","商业服务","猎头、职业中介","S_S05_7361","");
        add("商业及生活服务","商业服务","灭虫及消毒服务","S_S05_7342","");
        add("商业及生活服务","商业服务","其他商业服务","S_S05_7399","");
        add("商业及生活服务","商业服务","清洁、保养及门卫服务","S_S05_7349","");
        add("商业及生活服务","商业服务","清洁抛光服务","S_S05_2842","");
        add("商业及生活服务","商业服务","商业摄影、设计、绘图服务","S_S05_7333","");
        add("商业及生活服务","商业服务","商业摄影摄像服务","S_S05_7395","");
        add("商业及生活服务","商业服务","设备、工具、家具和电器出租","S_S05_7394","");
        add("商业及生活服务","商业服务","文字处理/翻译速记","S_S05_7339","");
        add("商业及生活服务","商业服务","债务催收机构","S_S05_7322","");
        add("商业及生活服务","商业服务","征信和信用报告咨询服务","S_S05_7321","");
        add("商业及生活服务","生活服务","按摩服务","S_S08_7297","");
        add("商业及生活服务","生活服务","财务债务咨询","S_S08_7276","");
        add("商业及生活服务","生活服务","导购、经纪和拍卖服务","S_S08_7278","");
        add("商业及生活服务","生活服务","服装出租","S_S08_7296","");
        add("商业及生活服务","生活服务","干洗店","S_S08_7216","");
        add("商业及生活服务","生活服务","婚介服务","S_S08_7273","");
        add("商业及生活服务","生活服务","婚庆服务","S_S08_7277","");
        add("商业及生活服务","生活服务","家政服务","S_S08_7295","");
        add("商业及生活服务","生活服务","美容/美发服务","S_S08_7230","");
        add("商业及生活服务","生活服务","美容SPA和美体保健","S_S08_7298","");
        add("商业及生活服务","生活服务","其他生活服务","S_S08_7299","");
        add("商业及生活服务","生活服务","丧仪殡葬服务","S_S08_7261","");
        add("商业及生活服务","生活服务","摄影服务","S_S08_7221","");
        add("商业及生活服务","生活服务","室内清洁服务","S_S08_7217","");
        add("商业及生活服务","生活服务","洗衣服务","S_S08_7210","");
        add("商业及生活服务","生活服务","洗熨服务（自助洗衣服务）","S_S08_7211","");
        add("商业及生活服务","生活服务","鞋帽清洗","S_S08_7251","");
        add("商业及生活服务","团购","团购及折扣店","S_S07_5310","");
        add("商业及生活服务","维修服务","办公电器和小家电维修","S_S09_7629","");
        add("商业及生活服务","维修服务","电器维修","S_S09_7622","");
        add("商业及生活服务","维修服务","各类维修相关服务","S_S09_7699","");
        add("商业及生活服务","维修服务","焊接维修服务","S_S09_7692","");
        add("商业及生活服务","维修服务","家具维修、翻新","S_S09_7641","");
        add("商业及生活服务","维修服务","空调、制冷设备维修","S_S09_7623","");
        add("商业及生活服务","维修服务","手表、钟表和首饰维修店","S_S09_7631","");
        add("商业及生活服务","直销","保险直销（代扣）","S_S03_5960","直销商户授权书、直销员资质或业务代理资质");
        add("商业及生活服务","直销","电话接入直销","S_S03_5967","直销商户授权书、直销员资质或业务代理资质");
        add("商业及生活服务","直销","电话外呼直销","S_S03_5966","直销商户授权书、直销员资质或业务代理资质");
        add("商业及生活服务","直销","订阅订购服务","S_S03_5968","");
        add("商业及生活服务","直销","旅游相关服务直销","S_S03_5962","直销商户授权书、直销员资质或业务代理资质");
        add("商业及生活服务","直销","目录直销平台","S_S03_5964","直销商户授权书、直销员资质或业务代理资质");
        add("商业及生活服务","直销","上门直销（直销员）","S_S03_5963","直销商户授权书、直销员资质或业务代理资质");
        add("商业及生活服务","直销","直销","S_S03_5969","直销商户授权书、直销员资质或业务代理资质");
        add("商业及生活服务","直销","直销代理","S_S03_5965","直销商户授权书、直销员资质或业务代理资质");
        add("生活百货","百货商城","超市（非平台类）","C_C04_5411","");
        add("生活百货","百货商城","成人用品/避孕用品/情趣内衣","C_C04_5914","");
        add("生活百货","百货商城","国外代购及免税店","C_C04_5309","");
        add("生活百货","百货商城","会员制批量零售店","C_C04_5300","");
        add("生活百货","百货商城","平台类综合商城","C_C04_5311","");
        add("生活百货","百货商城","其他专业零售店","C_C04_5999","");
        add("生活百货","百货商城","其他综合零售","C_C04_5399","");
        add("生活百货","百货商城","烟花爆竹","C_C04_5984","如果签约当面付需要提供资质，提供《烟花爆竹经营（批发）许可证》或《烟花爆竹经营批发(含进出口）许可证》、《烟花爆竹经营（零售）许可证》、《烟花爆竹安全生产许可证》，其他产品不允许签约");
        add("生活百货","百货商城","油品燃料经销","C_C04_5983","");
        add("生活百货","百货商城","杂货店","C_C04_5331","");
        add("生活百货","百货商城","帐篷和遮阳篷商店","C_C04_5998","");
        add("生活百货","服饰鞋包","裁缝、修补、改衣制衣","C_C06_5697","");
        add("生活百货","服饰鞋包","高档时装及奢侈品","C_C06_5691","");
        add("生活百货","服饰鞋包","各类服装及饰物","C_C06_5699","");
        add("生活百货","服饰鞋包","行李箱包","C_C06_5948","");
        add("生活百货","服饰鞋包","假发等饰品","C_C06_5698","");
        add("生活百货","服饰鞋包","男性服饰","C_C06_5611","");
        add("生活百货","服饰鞋包","内衣/家居服","C_C06_5651","");
        add("生活百货","服饰鞋包","女性成衣","C_C06_5621","");
        add("生活百货","服饰鞋包","配饰商店","C_C06_5631","");
        add("生活百货","服饰鞋包","皮草皮具","C_C06_5681","");
        add("生活百货","服饰鞋包","鞋类","C_C06_5661","");
        add("生活百货","服饰鞋包","鞋类销售平台（批发商）","C_C06_5139","");
        add("生活百货","服饰鞋包","制服与商务正装定制","C_C06_5137","");
        add("生活百货","家居家纺建材","壁炉、屏风","C_C03_5718","");
        add("生活百货","家居家纺建材","玻璃、油漆涂料、墙纸","C_C03_5231","");
        add("生活百货","家居家纺建材","布料、缝纫用品和其他纺织品（批发商）","C_C03_5131","");
        add("生活百货","家居家纺建材","草坪和花园用品","C_C03_5261","");
        add("生活百货","家居家纺建材","窗帘、帷幕、室内装潢","C_C03_5714","");
        add("生活百货","家居家纺建材","大型仓储式家庭用品卖场","C_C03_5200","");
        add("生活百货","家居家纺建材","地板和地毯","C_C03_5713","");
        add("生活百货","家居家纺建材","各种家庭装饰专营","C_C03_5719","");
        add("生活百货","家居家纺建材","花木栽种用品、苗木和花卉（批发商）","C_C03_5193","");
        add("生活百货","家居家纺建材","家具/家庭摆设","C_C03_5712","");
        add("生活百货","家居家纺建材","家用纺织品","C_C03_5949","");
        add("生活百货","家居家纺建材","家用五金工具","C_C03_5251","");
        add("生活百货","家居家纺建材","木材与建材商店","C_C03_5211","");
        add("生活百货","家居家纺建材","未列入其他代码的建材（批发商）","C_C03_5039","");
        add("生活百货","家居家纺建材","油漆、清漆用品（批发商）","C_C03_5198","");
        add("生活百货","家居家纺建材","游泳、SPA、洗浴设备","C_C03_5996","");
        add("生活百货","美妆珠宝配饰","化妆品","C_C01_5977","");
        add("生活百货","美妆珠宝配饰","男士用品：剃须刀、烟酒具、瑞士军刀","C_C01_5997","");
        add("生活百货","美妆珠宝配饰","钟表店","C_C01_5944","");
        add("生活百货","美妆珠宝配饰","珠宝和金银饰品","C_C01_5094","");
        add("生活百货","母婴玩具","母婴用品","C_C02_5641","");
        add("生活百货","母婴玩具","玩具、游戏用品","C_C02_5945","");
        add("生活百货","数码家电","家用电器","C_C07_5722","");
        add("生活百货","数码家电","商用计算机及服务器","C_C07_5045","");
        add("生活百货","数码家电","手机、通讯设备销售","C_C07_4812","");
        add("生活百货","数码家电","数码产品及配件","C_C07_5732","");
        add("生活百货","数码家电","专业摄影器材","C_C07_5946","");
        add("生活百货","图书音像","报纸、杂志","C_C09_5994","");
        add("生活百货","图书音像","书、期刊和报纸（批发商）","C_C09_5192","");
        add("生活百货","图书音像","书籍","C_C09_5942","");
        add("生活百货","图书音像","音像制品","C_C09_5735","");
        add("生活百货","文化玩乐宠物","宠物及宠物用品","C_C10_5995","");
        add("生活百货","文化玩乐宠物","瓷器、玻璃和水晶摆件","C_C10_5950","");
        add("生活百货","文化玩乐宠物","工艺美术用品","C_C10_5970","");
        add("生活百货","文化玩乐宠物","古玩复制品（赝品）","C_C10_5937","");
        add("生活百货","文化玩乐宠物","花店","C_C10_5992","");
        add("生活百货","文化玩乐宠物","家用电子游戏","C_C10_7993","");
        add("生活百货","文化玩乐宠物","旧商品店、二手商品店","C_C10_5931","");
        add("生活百货","文化玩乐宠物","乐器","C_C10_5733","");
        add("生活百货","文化玩乐宠物","礼品、卡片、纪念品","C_C10_5947","");
        add("生活百货","文化玩乐宠物","文物古董","C_C10_5932","《文物经营许可证》，国家文物除外");
        add("生活百货","文化玩乐宠物","艺术品和画廊","C_C10_5971","");
        add("生活百货","文化玩乐宠物","邮票/纪念币","C_C10_5972","");
        add("生活百货","文化玩乐宠物","宗教物品","C_C10_5973","");
        add("生活百货","饮食保健","保健品","C_C05_5467","");
        add("生活百货","饮食保健","餐厅、订餐服务","C_C05_5812","");
        add("生活百货","饮食保健","茶叶","C_C05_5466","");
        add("生活百货","饮食保健","酒吧、舞厅、夜总会","C_C05_5813","");
        add("生活百货","饮食保健","酒类","C_C05_5921","《酒类经营许可证》或《酒类销售许可证》");
        add("生活百货","饮食保健","快餐店","C_C05_5814","");
        add("生活百货","饮食保健","面包糕点","C_C05_5462","");
        add("生活百货","饮食保健","其他食品零售","C_C05_5499","");
        add("生活百货","饮食保健","肉、禽、蛋及水产品","C_C05_5422","");
        add("生活百货","饮食保健","乳制品/冷饮","C_C05_5451","");
        add("生活百货","饮食保健","糖果及坚果商店","C_C05_5441","");
        add("生活百货","饮食保健","烟草/雪茄","C_C05_5993","如果签约当面付需要提供资质，提供《烟草专卖生产企业许可证》、《烟草专卖零售许可证》或《烟草专卖批发企业许可证》，其他产品不允许签约");
        add("生活百货","饮食保健","宴会提供商","C_C05_5811","");
        add("生活百货","运动户外","体育用品/器材","C_C08_5941","");
        add("生活百货","运动户外","运动服饰","C_C08_5655","");
        add("生活百货","运动户外","自行车及配件","C_C08_5940","");
        add("网络虚拟","彩票","彩票","D_D03_7995","");
        add("网络虚拟","电信通讯","电信运营商","D_D04_4814","如非电信、联通、移动等运营商签约，则需要提供与运营商的合作协议");
        add("网络虚拟","电信通讯","付费电视","D_D04_4899","");
        add("网络虚拟","电信通讯","话费充值与缴费","D_D04_4815","如非电信、联通、移动等运营商签约，则需要提供与运营商的合作协议");
        add("网络虚拟","电信通讯","网络电话、传真","D_D04_4821","");
        add("网络虚拟","互联网服务","SNS社交网站","D_D05_7409","");
        add("网络虚拟","互联网服务","互联网IDC服务","D_D05_4816","");
        add("网络虚拟","互联网服务","计算机软件","D_D05_5734","如经营内容包含安全软件，则需要提供《计算机信息系统安全专用产品销售许可证》");
        add("网络虚拟","互联网服务","计算机维护和修理服务","D_D05_7379","");
        add("网络虚拟","互联网服务","门户网站","D_D05_7374","");
        add("网络虚拟","互联网服务","其他在线应用或综合类","D_D05_7413","");
        add("网络虚拟","互联网服务","软件系统商","D_D05_7372","");
        add("网络虚拟","互联网服务","视频点播","D_D05_7414","《网络文化经营许可证》且营业执照经营范围明确包含相关内容");
        add("网络虚拟","互联网服务","手机图铃","D_D05_7412","");
        add("网络虚拟","互联网服务","网络论坛","D_D05_7373","");
        add("网络虚拟","互联网服务","网站设计、推广","D_D05_7408","");
        add("网络虚拟","互联网服务","信息检索服务（信息平台）","D_D05_7375","");
        add("网络虚拟","互联网服务","休闲游戏","D_D05_7410","如为棋牌、捕鱼类游戏，则需要提供提交《网络文化经营许可证》");
        add("网络虚拟","互联网服务","在线文学类","D_D05_7411","");
        add("网络虚拟","数娱网游","网络游戏点卡、渠道代理","D_D02_7954","如为棋牌、捕鱼类游戏，则需要提供提交《网络文化经营许可证》");
        add("网络虚拟","数娱网游","网游运营商（含网页游戏）","D_D02_7958","如为棋牌、捕鱼类游戏，则需要提供提交《网络文化经营许可证》");
        add("网络虚拟","数娱网游","网游周边服务、交易平台","D_D02_7957","如为棋牌、捕鱼类游戏，则需要提供提交《网络文化经营许可证》");
        add("网络虚拟","数娱网游","游戏系统商","D_D02_7956","如为棋牌、捕鱼类游戏，则需要提供提交《网络文化经营许可证》");
        add("网络虚拟","娱乐票务","保龄球","D_D01_7933","");
        add("网络虚拟","娱乐票务","电玩娱乐场所","D_D01_7994","");
        add("网络虚拟","娱乐票务","电影院及电影票","D_D01_7832","");
        add("网络虚拟","娱乐票务","动物园、水族馆","D_D01_7998","");
        add("网络虚拟","娱乐票务","高尔夫球场","D_D01_7992","");
        add("网络虚拟","娱乐票务","歌舞厅/夜店","D_D01_7911","");
        add("网络虚拟","娱乐票务","健身和运动俱乐部","D_D01_7997","《健身器材销售许可证》、《健身器材生成许可证》");
        add("网络虚拟","娱乐票务","乐队和文艺表演","D_D01_7929","");
        add("网络虚拟","娱乐票务","其他娱乐服务","D_D01_7999","");
        add("网络虚拟","娱乐票务","体育场馆","D_D01_7941","");
        add("网络虚拟","娱乐票务","演出票务服务","D_D01_7922","");
        add("网络虚拟","娱乐票务","艺术创作服务","D_D01_7829","");
        add("网络虚拟","娱乐票务","音像制品出租","D_D01_7841","");
        add("网络虚拟","娱乐票务","游乐园、马戏团、嘉年华","D_D01_7996","");
        add("网络虚拟","娱乐票务","展览和艺术场馆","D_D01_7991","");
        add("网络虚拟","娱乐票务","桌球/桌游","D_D01_7932","");
        add("专业服务","教育服务","大学与学院","P_P02_8220","");
        add("专业服务","教育服务","儿童保育服务（含学前教育）","P_P02_8351","");
        add("专业服务","教育服务","函授学校（成人教育）","P_P02_8241","");
        add("专业服务","教育服务","其他学校和教育服务","P_P02_8299","");
        add("专业服务","教育服务","商业和文秘学校","P_P02_8244","");
        add("专业服务","教育服务","职业技能培训","P_P02_8249","");
        add("专业服务","教育服务","中小学校","P_P02_8211","");
        add("专业服务","其他","GCAS紧急服务（仅限Visa使用）","P_P06_9702","");
        add("专业服务","其他","Visa信任服务","P_P06_9701","");
        add("专业服务","其他","档案","P_P06_9715","");
        add("专业服务","其他","电子档案","P_P06_9752","");
        add("专业服务","其他","站内清算","P_P06_9950","");
        add("专业服务","社会组织","慈善和社会公益服务","P_P03_8398","");
        add("专业服务","社会组织","行业协会和专业社团","P_P03_8641","");
        add("专业服务","社会组织","其他会员组织","P_P03_8699","");
        add("专业服务","社会组织","汽车协会","P_P03_8675","");
        add("专业服务","社会组织","政府机构","P_P03_8651","");
        add("专业服务","社会组织","宗教组织","P_P03_8661","");
        add("专业服务","医疗服务","按摩医生","P_P01_8041","");
        add("专业服务","医疗服务","公立医院","P_P01_8062","《医疗机构执业许可证》");
        add("专业服务","医疗服务","护理和照料服务","P_P01_8050","");
        add("专业服务","医疗服务","其他医疗保健服务","P_P01_8099","");
        add("专业服务","医疗服务","社区医疗服务机构、诊所等","P_P01_8011","《医疗机构执业许可证》");
        add("专业服务","医疗服务","手足病医疗服务","P_P01_8049","《医疗机构执业许可证》");
        add("专业服务","医疗服务","牙科医生","P_P01_8021","《牙科执业许可证》");
        add("专业服务","医疗服务","眼镜店","P_P01_8043","如经营内容包含美瞳或者隐形眼镜，则需要提供《第三类医疗器械销售资质》");
        add("专业服务","医疗服务","眼科医疗服务","P_P01_8042","《医疗机构执业许可证》");
        add("专业服务","医疗服务","医学及牙科实验室","P_P01_8071","《牙科执业许可证》");
        add("专业服务","医疗服务","正骨医生","P_P01_8031","《医疗机构执业许可证》");
        add("专业服务","政府服务","保释金","P_P05_9223","");
        add("专业服务","政府服务","法庭费用","P_P05_9211","");
        add("专业服务","政府服务","国家邮政","P_P05_9402","");
        add("专业服务","政府服务","行政费用和罚款","P_P05_9222","");
        add("专业服务","政府服务","社会保障服务","P_P05_9399","");
        add("专业服务","政府服务","使领馆","P_P05_9400","");
        add("专业服务","政府服务","税务、海关","P_P05_9311","");
        add("专业服务","政府服务","政府采购","P_P05_9405","");
        add("专业服务","政府服务","政府贷款","P_P05_9411","");
        add("专业服务","专业咨询","测试实验服务","P_P04_8734","");
        add("专业服务","专业咨询","法律咨询和律师事务所","P_P04_8111","《律师事务所执业许可证》");
        add("专业服务","专业咨询","会计、审计、财务服务","P_P04_8931","");
        add("专业服务","专业咨询","建筑、工程和测量服务","P_P04_8911","");
        add("专业服务","专业咨询","其他专业服务","P_P04_8999","");
        add("专业服务","专业咨询","装修、装潢、园艺","P_P04_8912","");
        add("专业销售","办公用品","办公、影印及微缩摄影器材（批发商）","B_B01_5044","");
        add("专业销售","办公用品","办公及商务家具（批发商）","B_B01_5021","");
        add("专业销售","办公用品","打字设备、打印复印机、扫描仪","B_B01_5978","");
        add("专业销售","办公用品","未列入其他代码的商用器材","B_B01_5046","");
        add("专业销售","办公用品","文具、办公用品、复印纸和书写纸（批发商）","B_B01_5111","");
        add("专业销售","办公用品","文具及办公用品","B_B01_5943","");
        add("专业销售","工业产品","电气产品和设备","B_B02_5065","");
        add("专业销售","工业产品","工业设备和制成品","B_B02_5085","");
        add("专业销售","工业产品","管道及供暖设备","B_B02_5074","");
        add("专业销售","工业产品","化工产品","B_B02_5169","如出售的化工产品为危险化学品，需提供危险化学品经营备案证明");
        add("专业销售","工业产品","金属产品和服务（批发商）","B_B02_5051","");
        add("专业销售","工业产品","其他工业耐用品","B_B02_5099","");
        add("专业销售","工业产品","其他工业原料和消耗品","B_B02_5199","");
        add("专业销售","工业产品","石油及石油产品（批发商）","B_B02_5172","");
        add("专业销售","工业产品","五金器材及用品（批发商）","B_B02_5072","");
        add("专业销售","汽车和运输工具","船舶及配件销售","B_B03_5551","");
        add("专业销售","汽车和运输工具","电动车及配件","B_B03_5572","");
        add("专业销售","汽车和运输工具","二手车销售","B_B03_5521","");
        add("专业销售","汽车和运输工具","飞机及配件、航道设施","B_B03_5565","");
        add("专业销售","汽车和运输工具","轨道交通设备器材","B_B03_5564","");
        add("专业销售","汽车和运输工具","活动房车销售商","B_B03_5271","");
        add("专业销售","汽车和运输工具","机动车供应及零配件（批发商）","B_B03_5013","");
        add("专业销售","汽车和运输工具","机动车综合经营","B_B03_5599","");
        add("专业销售","汽车和运输工具","加油卡、加油服务","B_B03_5542","");
        add("专业销售","汽车和运输工具","加油站、服务站","B_B03_5541","");
        add("专业销售","汽车和运输工具","露营及旅行汽车","B_B03_5592","");
        add("专业销售","汽车和运输工具","摩托车及配件","B_B03_5571","");
        add("专业销售","汽车和运输工具","汽车零配件","B_B03_5533","");
        add("专业销售","汽车和运输工具","汽车轮胎经销","B_B03_5532","");
        add("专业销售","汽车和运输工具","汽车销售","B_B03_5511","");
        add("专业销售","汽车和运输工具","拖车、篷车及娱乐用车","B_B03_5561","");
        add("专业销售","汽车和运输工具","雪车","B_B03_5598","");
        add("专业销售","汽车和运输工具","运输搬运设备、起重装卸设备","B_B03_5566","");
        add("专业销售","药品医疗","康复和身体辅助用品","B_B04_5976","《医疗器械经营企业许可证》");
        add("专业销售","药品医疗","药品、药品经营者（批发商）","B_B04_5122","《药品经营许可证》或《互联网药品交易服务证》");
        add("专业销售","药品医疗","药物","B_B04_5912","《药品经营许可证》或《互联网药品交易服务证》");
        add("专业销售","药品医疗","医疗器械","B_B04_5047","《医疗器械经营企业许可证》");
        add("专业销售","药品医疗","助听器","B_B04_5975","《医疗器械经营企业许可证》");
        add("商业及生活服务","金融服务","小贷公司","S_S04_6060","");
        add("商业及生活服务","金融服务","消费金融公司","S_S04_6061","");
        add("商业及生活服务","金融服务","汽车金融公司","S_S04_6062","");
        add("商业及生活服务","金融服务","融资租赁公司","S_S04_6063","");
        add("商业及生活服务","金融服务","金融租赁公司","S_S04_6064","");
        add("商业及生活服务","金融服务","信托公司","S_S04_6065","");
        add("商业及生活服务","金融服务","支付机构","S_S04_6066","");
        add("商业及生活服务","金融服务","融资担保公司","S_S04_6067","");
        add("商业及生活服务","金融服务","借贷消费平台","S_S04_6068","");
        logger.info(JSON.toJSONString(list));
    }

    public static void add(String first, String second, String thirdName, String thirdCode, String thirdComment) {
        /**
         * 第一步，循环所有的首选项
         */
        boolean found;
        List<Map> mapList;

        /**
         * 第一层
         */
        mapList = list;
        found = false;
        Map m1 = new LinkedHashMap();
        for (Map map : mapList) {
            if (map.get("label").equals(first)) {
                found = true;
                m1 = map;
                break;
            }
        }
        if (!found) {
            m1.put("value", first);
            m1.put("label", first);
            m1.put("children", new ArrayList<>());
            mapList.add(m1);
        }

        /**
         * 第二层
         */
        mapList = (List<Map>) m1.get("children");
        found = false;
        Map m2 = new LinkedHashMap();
        for (Map map : mapList) {
            if (map.get("label").equals(second)) {
                found = true;
                m2 = map;
                break;
            }
        }
        if (!found) {
            m2.put("value", second);
            m2.put("label", second);
            m2.put("children", new ArrayList<>());
            mapList.add(m2);
        }

        /**
         * 第三层
         */
        mapList = (List<Map>) m2.get("children");
        found = false;
        Map m3 = new LinkedHashMap();
        for (Map map : mapList) {
            if (map.get("label").equals(thirdName)) {
                found = true;
                m3 = map;
                break;
            }
        }
        if (!found) {
            m3.put("value", thirdCode);
            m3.put("label", thirdName);
            if (StringUtils.isNotBlank(thirdComment)) {
                m3.put("comment", thirdComment);
            }
            mapList.add(m3);
        }
    }
}
